<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>邮件管理</em></a><span>|</span><a href='javascript:send_mail();' ><em>发送邮件</em></a><span>|</span><a href='<?php echo U('user/registry_export');?>' ><em>导出为CVS</em></a>    </div>
</div>
<div class="pad_10">
<div class="table-list">
<form action="<?php echo U('user/registry_delete');?>" method="post">
    <table width="100%" cellspacing="0">
      <thead>
				<tr>
				<th width="100">选择</th>
				<th width="300" align="left" >email</th>
                <th width="100" align="left">时间</th>
				<th width="*"  align="left">订阅状态</th>
				</tr>
      </thead>
     <tbody>
        <?php 
        if(isset($emailList) && $emailList):
        	foreach ($emailList as $v):
        ?>
			<tr>
				<td align="center"><input name="ids[]" type="checkbox" value="<?php echo $v['id']?>" /></td>
				<td align="left"><?php echo $v['email']?></td>
                <td width="100" align="left"><?php if($v['time']>0){echo date('Y-m-d H:i:s',$v['time']);}?></td>
				<td align="left"><?php if($v['status']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
			</tr>
			<?php 
					endforeach;
				endif;
			?>
		</tbody>
	</table>
	<div class="btn"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');">全选/取消 <input type="submit" class="button" name="dosubmit" value="删除"/></div>
</form>
	<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
<!--
function send_mail(){
		window.top.art.dialog({title:'发信', id:'send', iframe:'<?php echo U('user/registry_send');?>' ,width:'600px',height:'400px'}, 	function(){var d = window.top.art.dialog({id:'send'}).data.iframe;
		var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'send'}).close()});
	
}
//-->
</script>
